package scau.mis4.chanyulin.atm.domain;

import scau.mis4.chanyulin.atm.base.common.Unique;

import java.util.Date;

/**
 * Created by cyl on 2018/4/28.
 * 银行账户实体类
 */
public class Account extends Unique {

    private String cardId;
    private String password;
    private String name;
    private String gender;
    private Date born;
    private double balance;

    public Account(String id, String cardId, String password, String name, String gender, Date born, double balance) {
        this.id = id;
        this.cardId = cardId;
        this.password = password;
        this.name = name;
        this.gender = gender;
        this.born = born;
        this.balance = balance;
    }

    public Account(String cardId, String password, String name, String gender, Date born, double balance) {
        this.cardId = cardId;
        this.password = password;
        this.name = name;
        this.gender = gender;
        this.born = born;
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "Account{" +
                "id='" + id + '\'' +
                ", cardId='" + cardId + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", born=" + born +
                ", customerBalance=" + balance +
                '}';
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Date getBorn() {
        return born;
    }

    public void setBorn(Date born) {
        this.born = born;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

}
